<template>
  <div class="cover-shop-info" @click="close">
    <div class="wrapper">
      <div class="shop-name">
        <span class="brand">品牌</span>
        <span class="name">方中山胡辣汤 (总店)</span>
      </div>
      <ul class="shop-data">
        <li>
          <h3>4.2</h3>
          <span>评分</span>
        </li>
        <li>
          <h3>90 单</h3>
          <span>月售</span>
        </li>
        <li>
          <h3>饱了专送</h3>
          <span>约28分钟</span>
        </li>
        <li>
          <h3>4 元</h3>
          <span>配送费</span>
        </li>
        <li>
          <h3>1000m</h3>
          <span>距离</span>
        </li>
      </ul>
      <p class="notice"><span>公告</span></p>
      <p class="notice-content">
        主营以麻、辣、鲜、香特色的方中山胡辣汤。主食类有油饼、牛肉盒、牛肉水煎包等产品为主的早点快餐店
      </p>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    close() {
      this.$emit("closeCoverShopInfo")
    },
  },
}
</script>

<style lang="less" scoped>
@import "../../common/style/mixin.less";
.cover-shop-info {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3);
  .wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 34rem;
    height: 25rem;
    padding: 2.5rem 1rem;
    border-radius: 0.5rem;
    background: #fff;
    z-index: 99;
    .shop-name {
      display: flex;
      justify-content: center;
      align-items: center;
      .brand {
        width: 3.6rem;
        height: 1.8rem;
        line-height: 1.8rem;
        font-size: 1.2rem;
        font-weight: 600;
        color: #6a3709;
        background-color: #ffe337;
        border-radius: 0.2rem;
        text-align: center;
        margin-right: 1rem;
      }
      .name {
        width: 20rem;
        height: 2.4rem;
        font-size: 2rem;
        color: #333333;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
    .shop-data {
      display: flex;
      margin-top: 2rem;
      li {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        h3 {
          margin: 0;
          font-size: 1.6rem;
          font-weight: 600;
          color: #333;
          margin-bottom: 0.5rem;
        }
        span {
          font-size: 1.2rem;
          color: #999;
        }
      }
    }
    .notice {
      width: 8.5rem;
      line-height: 1.6rem;
      margin: 1.5rem auto;
      text-align: center;
      background-image: linear-gradient(to right, #fff, #333, #fff);
      background-size: 100% 0.1rem;
      background-position: 50%;
      background-repeat: no-repeat;
      span {
        font-size: 1.2rem;
        padding: 0 0.6rem;
        color: #999;
        background-color: #fff;
      }
    }
    .notice-content {
      padding: 0 1.3rem;
      font-size: 1.3rem;
      line-height: 1.7;
      color: #333;
    }
  }
}
</style>
